package day10;

public class Rectangle extends Graph{
    private double chang;
    private double kuan;

    public Rectangle(double chang, double kuan) {
        this.chang = chang;
        this.kuan = kuan;
    }

    public double getChang() {
        return chang;
    }

    public void setChang(double chang) {
        this.chang = chang;
    }

    public double getKuan() {
        return kuan;
    }

    public void setKuan(double kuan) {
        this.kuan = kuan;
    }

    @Override
    public void area() {

    }
    public double area(double chang,double kuan){
        return chang*kuan;
    }
    public double perimeter(double chang,double kuan){
        return chang+chang+kuan+kuan;
    }

    @Override
    public void perimeter() {

    }
}
